import random
count = 5
win = 0
scissorrockFive = ["剪刀","石头","布"]
while count > 0:
    robot = random.choice(scissorrockFive)
    superman = input("COME:")
    if superman == robot:
      print("平局")
    elif superman == "剪刀" and robot == "石头":
      print("输")
      count -= 1
    elif superman == "剪刀" and robot == "布":
      print("赢")
      win += 1
      count -=1
    elif superman == "石头" and robot == "布":
      print("输")
      count -=1
    elif superman == "石头" and robot == "剪刀":
      print("赢")
      win += 1
      count -= 1
    elif superman == "布" and robot == "剪刀":
      print("输")
      count -= 1
    elif superman == "布" and robot == "石头":
      print("赢")
      win += 1
      count -= 1
if win > 2:
    print("WIN")
else:
    print("FAILURE")

